package designpattern.constructor;

/**
 * @author liuyj
 * @Title: ConstructorTest
 * @create 2020-06-10 17:33
 * @ProjectName demo-designpattern
 * @Description: 测试类
 */
public class ConstructorTest {

    public static void main(String[] args) {
        ComputerBuilder computerBuilder=new ComputerBuilder();
        computerBuilder.installDisplayer("显示器");
        computerBuilder.installMainUnit("主机");
        computerBuilder.installKeyBoard("键盘");
        computerBuilder.installMouse("鼠标");
        Computer computer=computerBuilder.getComputer();
        System.out.println(computer);
    }
}
